﻿@using GSLMS.Entity
@using GSLMS.Entity.Enum
@model GSLMS.Entity.TB_APP_SPECIALINFO
@{
    Layout = null;
    var logList = Model.LogInfo ?? new List<TB_APP_LOGINFO>();
    var auditInfo = ViewData["auditInfo"] as List<TB_ADU_SPECAIL>;
}
<div class="pageContent" layouth="5">
    <div class="pageFormContent" layouth="350">
        @Html.HiddenFor(model => model.ID)
        <p>
            <label>
                标题：</label>
            @Html.ValueFor(model => model.SPECIALTITLE)
        </p>
        <p>
            <label>
                类型：</label>
            @Html.ValueFor(model => model.SPECIALTYPE)
        </p>
        <p>
            <label>
                客户名称：</label>
            @Html.ValueFor(model => model.CUSTNAME)
        </p>
        <p>
            <label>
                项目经理：</label>
            @Html.ValueFor(model => model.SALESMAN)
        </p>
        <p>
            <label>
                所属部门：</label>
            @Html.ValueFor(model => model.DEPNAME)
        </p>
        <p>
            <label>
                贷款产品：</label>
            @Html.ValueFor(model => model.PRODUCTNAME)
        </p>
        <p>
            <label>
                审批进度：</label>
            @((ApplyEnum.SpecialStatus)(int)Model.STATUS)
        </p>
        <div class="divider">
        </div>
        <p style="width: 90%">
            <label>
                详细内容：</label>
            @Html.ValueFor(model => model.DETAIL)
        </p>
    </div>
    <div class="divider" />
    <table class="list" width="100%">
        <thead>
            <tr class="header">
                <th style="width:80px;">
                    审批人
                </th>
                <th style="width:140px;">
                    审批时间
                </th>
                <th style="width:80px;">
                    审批结论
                </th>
                <th>
                审批意见
                </th>
            </tr>
        </thead>
        @if (auditInfo != null && auditInfo.Count > 0)
        {
            foreach (var item in auditInfo)
            {            
            <tr>
                <td style="text-align:center;">
                    @item.SUBMITUSER
                </td>
                <td style="text-align:center;">
                    @(item.AUDITTIME==null?"":(item.AUDITTIME.Value.ToString("yyyy年MM月dd日 HH:mm:ss")))
                </td>
                <td style="text-align:center;">
                    @((GSLMS.Entity.Enum.ApplyEnum.ProAuditResult)item.AUDITSTATUS)
                </td>
                <td>
                  @item.REMARK
                </td>
            </tr>         
            }
        }
    </table>
</div>
